find number of unique characters in string